import 'package:json_annotation/json_annotation.dart';

part 'dept.g.dart';

@JsonSerializable()
class Dept {
  int? id;
  String? name;

  Dept({
    this.id,
    this.name,
  });

  factory Dept.fromJson(Map<String, dynamic> json) => _$DeptFromJson(json);

  Map<String, dynamic> toJson() => _$DeptToJson(this);
}
